home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
mkutil21.zip
/
MAKEDEFS
/
SC16.MK
< prev
next >
Wrap
Text File
|
1995-02-06
|
4KB
|
136 lines
#############################################################################
#
# Copyright (C) 1994 SciTech Software
# All rights reserved.
#
# Descripton: Generic DMAKE startup makefile definitions file. Assumes
# that the SCITECH environment variable has been set to point
# to where all our stuff is installed. You should not need
# to change anything in this file.
#
# Symantec C++ 6.1 16 bit version.
#
# $Id: sc16.mk 1.1 1995/02/06 12:49:39 kjb release $
#
#############################################################################
# Disable warnings for macros redefined here that were given
# on the command line.
__.SILENT := $(.SILENT)
.SILENT := yes
# File suffix definitions
L := .lib # Libraries
E := .exe # Executables
O := .obj # Objects
A := .asm # Assembler sources
P := .cpp # C++ sources
# Import enivornment variables that we use
TMPDIR := $(ROOTDIR)/tmp
.IMPORT .IGNORE : TMPDIR COMSPEC INCLUDE LIB SCITECH DBG OPT SHW BETA FPU
.IMPORT .IGNORE : USE_WIN16
# We use the MSDOS shell at all times
SHELL := $(COMSPEC)
GROUPSHELL := $(SHELL)
SHELLFLAGS := $(SWITCHAR)c
GROUPFLAGS := $(SHELLFLAGS)
SHELLMETAS := *"?<>
GROUPSUFFIX := .bat
DIRSEPSTR := \\
DIVFILE = $(TMPFILE:s,/,\)
# Default commands for compiling, assembling linking and archiving
CC := sc # C-compiler and flags
CFLAGS := -ml -Jm
AS := tasm # Assembler and flags
ASFLAGS := /mx /m /D__COMM__ /i$(SCITECH)\INCLUDE
LD := sc # Loader and flags
LDFLAGS = $(CFLAGS)
LIB := lib # Librarian
LIBFLAGS := /N /B
# Optionally turn on debugging information
.IF $(DBG)
CFLAGS += -g # Turn on debugging for C compiler
.END
# Optionally turn on optimisations
.IF $(OPT)
CFLAGS += -5 -o+all
.END
# Optionally turn on direct i387 FPU instructions
.IF $(FPU)
CFLAGS += -ff -DFPU387
ASFLAGS += -DFPU387 -DFPU_REG_RTN
.END
# Optionally compile a shareware version of a product
.IF $(SHW)
LIB_DIR := LIBSW
CFLAGS += -DSHAREWARE
.ELSE
LIB_DIR := LIB
.END
# Optionally compile a beta release version of a product
.IF $(BETA)
CFLAGS += -DBETA
ASFLAGS += -DBETA
.END
# User a larger stack if requested
.IF $(STKSIZE)
LDFLAGS += =$(STKSIZE)
.ENDIF
# Optionally compile for 16 bit Windows DPMI
.IF $(USE_WIN16)
DX_CFLAGS += -DWINDPMI16
DX_ASFLAGS += -DWINDPMI16 -D__PM286__
.END
# Place to look for PMODE library files
.IF $(MK_PMODE)
.ELIF $(USE_WIN16)
PMLIB := win16\pmode.lib
.ELSE
PMLIB := pmode.lib
.END
# Define where to install library files
LIB_BASE := $(SCITECH)\$(LIB_DIR)\SC16
LIB_DEST := $(LIB_BASE)
# Definition of $(MAKE) macro for recursive makes.
MAKE = $(MAKECMD) $(MFLAGS)
# Macro to install a library file
INSTALL := cp
# Implicit generation rules for making object files
%$O: %.c ; +$(CC) $(CFLAGS) -c $<
%$O: %$P ; +$(CC) $(CFLAGS) -c $<
%$O: %$A ; +$(AS) $(ASFLAGS) $(<:s,/,\)
# Implicit rule for building a library file using response file
%$L: ; +$(LIB) $(LIBFLAGS) $@ @$(mktmp -+$(?:t" &\n-+")\n)
# Implicit rule for building an executable file using response file
%$E: ; +$(LD) $(LDFLAGS) -e$@ @$(mktmp $(&:s/\/\\) $(PMLIB) $(EXELIBS))
# DMAKE uses this recipe to remove intermediate targets
.REMOVE :; $(RM) -f $<
# Turn warnings back to previous setting.
.SILENT := $(__.SILENT)
# We dont use TABS in our makefiles
.NOTABS := yes